<!doctype html>
{% load i18n staticfiles %}
<html>
<head>
    <title>{{doc_title}}</title>
    <link rel="shortcut icon" href="{{ MEDIA_URL }}{{ favicon_path }}" />
    <meta charset="utf-8">
    <!-- Enable IE Standards mode -->
    <meta http-equiv="x-ua-compatible" content="ie=edge">
    <meta name="description" content="">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <style type="text/css">
        html,
        body {
            margin: 0;
            padding: 0;
            height:100%;
            overflow:hidden;
        }
        #office_frame {
            display: block;
            width:100%;
            height: 100%;
            border: none;
            margin: 0;
        }
        .hide {
            display:none;
        }
    </style>
</head>
<body>

<form id="office_form" name="office_form" target="office_frame" action="{{action_url}}" method="post">
    <input name="access_token" value="{{access_token}}" type="hidden"/>
    <input name="access_token_ttl" value="{{access_token_ttl}}" type="hidden"/>
</form>

<iframe id="office_frame" name="office_frame" class="hide" allowfullscreen ></iframe>

<script type="text/javascript" src="{% static "scripts/lib/jquery.min.js" %}"></script>
<script type="text/javascript" src="{{ MEDIA_URL }}js/jq.min.js"></script>
<script type="text/javascript" src="{{ MEDIA_URL }}js/base.js?t=1536127546642"></script>
<script type="text/javascript">
    document.getElementById('office_form').submit();
    document.getElementById('office_frame').className = '';
</script>
{% include 'snippets/wopi_onlyoffice_js.html' %}
</body>
</html>
